import request from "../utils/request";

export function get(url, params) {
  return request({
    url: url,
    method: 'get',
    params: params
  })
}

export function post(url, data) {
  return request({
    url: url,
    method: 'post',
    data: data
  })
}

export function put(url, data) {
  return request({
    url: url,
    method: 'put',
    data: data
  })
}

export function del(url, params) {
  return request({
    url: url,
    method: 'delete',
    params: params
  })
}
